import moduleRules from './rules/module';
import order from './rules/order';
import rules from './rules/index';
import scssRules from './rules/scss';
const config = {
    extends: ['stylelint-config-standard'],
    plugins: ['stylelint-order'],
    rules: {
        ...order,
        ...rules,
        ...moduleRules,
    },
    ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.vue', '**/*.ts', '**/*.tsx'],
    overrides: [
        {
            files: '**/*.scss',
            extends: ['stylelint-config-recommended-scss', 'stylelint-prettier/recommended'],
            plugins: ['stylelint-scss'],
            rules: {
                ...scssRules,
                'at-rule-no-unknown': null,
                'scss/at-rule-no-unknown': [
                    true,
                    {
                        ignoreAtRules: ['value'],
                    },
                ],
                'function-no-unknown': null,
                'scss/function-no-unknown': [
                    true,
                    {
                        ignoreFunctions: ['global'],
                    },
                ],
            },
        },
    ],
};

export = config;
